package com.rs.lc.pm.controller;

import com.rs.lc.pm.model.Test;
import com.rs.lc.pm.service.TestService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

/**
 * Created by Xavier_Wei on 2016/11/14.
 */
@Controller
public class TestController {
    @Resource
    private TestService testService;

    @RequestMapping("/index.do")
    public String test() {
        Test t = new Test();
        t.setText("dd");
        testService.save(t);
        return "index";
    }
}
